/*
    * Regras Padrões
    * - a = A-Z e 0-9
    * - A = A-Z, acentos e 0-9
    * - 9 = 0-9
    * - C = A-Z e acentos
    * - c = A-Z
    * - * = qualquer coisa
*/

var mask = {

	setCliMask: function() {
            var name = document.getElementsByName('cliNameInput'),
                phone = document.getElementsByName('cliPhoneInput'),
                born = document.getElementsByName('cliDateInput'),
                doc = document.getElementsByName('cliDocInput'),
                street = document.getElementsByName('cliStreetInput'),
                neig = document.getElementsByName('cliNeigInput'),
                zip = document.getElementsByName('cliZipInput'),
                city = document.getElementsByName('cliCityInput'),
                state = document.getElementsByName('cliStateInput');
				
            for(var i=0; i<2; i++) {		                              
                MaskInput(name[i], "**************************************************");
                MaskInput(phone[i], "(99)9999-9999");
                MaskInput(born[i], "99/99/9999");
                MaskInput(doc[i], "99999999999");
                MaskInput(street[i], "*************************************************");
                MaskInput(neig[i], "********************************");
                MaskInput(zip[i], "99999-999");
                MaskInput(city[i], "********************************");
                MaskInput(state[i], "cc");
            }	
	},
        
        setCarMask: function() {
            var model = document.getElementsByName('carModelInput'),
                mark = document.getElementsByName('carMarkInput'),
                color = document.getElementsByName('carColorInput'),
                license = document.getElementsByName('carLicenseInput'),
                year = document.getElementsByName('carYearInput');
				
            for(var i=0; i<2; i++) {		                              
                MaskInput(model[i], "****************");
                MaskInput(mark[i], "***************");
                MaskInput(color[i], "***************");
                MaskInput(license[i], "ccc-9999");
                MaskInput(year[i], "9999");
            }	
	},
        
        setNewParkMask: function() {
            var client = document.getElementsByName('carModelInput'),
                car = document.getElementsByName('carMarkInput');
				
            for(var i=0; i<2; i++) {		                              
                MaskInput(client[i], "******************");
                MaskInput(car[i], "***********");
            }	
	}
}